import { useState } from 'react';

export default function HomePage() {
  console.log('HomePage');
  const [num, setNum] = useState(0);

  function handleClick() {
    console.log(num);
    setNum((i) => i + 1);
  }

  return (
    <>
      {/* <div className="">{num}</div> */}
      <div className="">数字: {num}</div>
      <button onClick={handleClick}>add</button>
    </>
  );
}
